package com.fish.model.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 通知接收人实体类
 */
@Data
@TableName("notification_receiver")
public class NotificationReceiver implements Serializable {
    
    private static final long serialVersionUID = 1L;
    
    /**
     * 主键ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    
    /**
     * 通知ID
     */
    @TableField("notification_id")
    private Long notificationId;
    
    /**
     * 接收者用户ID
     */
    @TableField("receiver_id")
    private Long receiverId;
    
    /**
     * 接收者用户名
     */
    @TableField("receiver_name")
    private String receiverName;
    
    /**
     * 是否已读（0-未读 1-已读）
     */
    @TableField("is_read")
    private Integer isRead;
    
    /**
     * 阅读时间
     */
    @TableField("read_time")
    private LocalDateTime readTime;
    
    /**
     * 创建时间
     */
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private LocalDateTime createTime;
}




